A Proposal for a Foreign Language Interface to Prolog1

نویسنده

  • Michael R. Levy
چکیده

We show how the use of coroutining can lead to a simple but complete foreign language interface between Prolog and imperative programming languages such as C, Pascal or Basic. We show that both explicit and implicit coroutining must be supported. Explicit coroutining is achieved using the freeze/2 predicate. Implementation of the interface is straight-forward. The system has been used in an expert-system. Its user-interface was developed using Visual Basic. The rule set was implemented in Prolog. 1.0 Multi-paradigm programming and orthogonality Multi-paradigm programming[7,9] is a useful technique for the development of software. One approach to multi-paradigm programming is to select programming languages with non-overlapping features and gain the product of their capabilities by appropriate combination of their use. When a software system is developed using more than one programming language, there must be a mechanism that allows the languages to communicate with each other. One way this might be done is to use message-passing, either synchronous or asynchronous (see, for example [8]). In this method, programs communicate through the use of message-passing primitives such as send and receive. Encapsulation is obtained because the software designer must define the structure of the messages. That is, the message formats serve as a kind of signature for access to the data or control objects that can be transmitted. Furthermore, message-passing systems can be run as a single or multiple execution thread on one or several processors. A more mundane mechanism for communication between units is to use function or procedure calls. This is less flexible than message passing, but is most likely to be portable. Almost all programming languages allow procedure calls to other programming languages. Most commercial Prolog systems come with a facility that allows C functions to be called from Prolog. Some allow Prolog predicates to be called from other programming languages (see, for example, [11] and [2]). For the purposes of this paper, we are primarily concerned with foreign language access to Prolog, rather than Prolog access to foreign languages. The reason for this choice is that the application that motivated the development of the foreign-language nterface was an expert system whose front-end was developed using Visual Basic. In Visual Basic (and in similar visual systems like Borland’s Delphi), the top-level

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

The Interface between Linguistic and Pragmatic Competence: The Case of Disagreement, Scolding, Requests, and Complaints

 Second language  learners often develop grammatical competence in the absence of concomitant pragmatic competence (Kasper & Roever, 2005) and the exact nature of the relationship between the two competences is still indistinct and in need of inquiries ( Bardovi-Harlig, 1999; Khatib & Ahmadisafa, 2011). This study is a partial attempt to address the lacuna and aims to see if any relationship ca...

متن کامل

“It’s Practically a Must”: Neoliberal Reasons for Foreign Language Learning

This qualitative study analyzes the reasons of college students for learning English as a foreign language (EFL) in Costa Rica and the reasons of high school students for learning German as a foreign language (GFL) in the US. It asks to what extent the learners’ reasons align with or deviate from neoliberal discourses that commodify foreign languages. The analysis of 27 interviews in a US high ...

متن کامل

Integrative Systemic Therapy in Foreign Language Learning: A Practical Framework for Managing Foreign Language Listening Anxiety among Iranian EFL Learners

This study aimed at proposing a framework based on Integrative Systemic Therapy (IST) for addressing foreign language listening anxiety (FLLA) among Iranian learners of English as a Foreign Language (EFL). The effectiveness of the framework in reducing the levels of FLLA among language learners was investigated when implemented by a therapist as well as by learners independently. To this end, 3...

متن کامل

Investigating Foreign Language Enjoyment and Public Speaking Class Anxiety in the EFL Class: A Mixed Methods Study

Foreign language enjoyment and speaking anxiety in the classroom are two potential emotion-inducing factors for foreign language learning. This sequential mixed methods study investigated whether and to what extent Iranian EFL students experienced foreign language enjoyment and public speaking anxiety in their English classrooms, and how they characterize the sources of the enjoyment and speaki...

متن کامل

Nonlinear lap joint interface modeling and updating strategies for assembled structures

A comparison between two known strategies of modeling lap joint interfaces, namely, zero-thickness and thin layer interface theories and their associated updating procedures, is made. Finite element...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2007